import os
from base import PROJECT_ROOT


MEDIA_DIR_NAME = 'media'

# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = os.path.join(PROJECT_ROOT, MEDIA_DIR_NAME, '')

# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases).
# Examples: "http://media.lawrence.com", "http://example.com/media/"
MEDIA_URL = '/' + MEDIA_DIR_NAME + '/' 

# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://foo.com/media/", "/media/".
ADMIN_MEDIA_PREFIX = '/' + MEDIA_DIR_NAME + '/admin/'



USER_MEDIA_DIR_NAME = 'user_media'

# Non standard setting. Use this for dynamic user data
# to not mix it with the static application media.
USER_MEDIA_ROOT = os.path.join(PROJECT_ROOT, USER_MEDIA_DIR_NAME, '')

# Non standard setting. Use this for dynamic user data
# to not mix it with the static application media.
USER_MEDIA_URL = '/' + USER_MEDIA_DIR_NAME + '/'
